package com.shop.service;

import com.shop.pojo.User;
import com.shop.result.JsonResult;
import com.shop.vo.LoginVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface LoginService {
    String login(HttpServletRequest request,HttpServletResponse response);

    JsonResult regsiter(User user);

    User getUserByToken(String token);

    boolean getUserIsTimeout(HttpServletRequest request,HttpServletResponse response,String token);
}
